package com.tansun.rule.utils;

import java.io.Serializable;

public class JsonMessage implements Serializable {

    private static final long serialVersionUID = 709024010556887943L;
    /**
     * 执行结果
     */
    private boolean result;
    /**
     * 返回消息
     */
    private String message;
    /**
     * 返回数据
     */
    private Serializable data;

    public boolean getResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Serializable getData() {
        return data;
    }

    public void setData(Serializable data) {
        this.data = data;
    }

    /*自定义构造函数*/
    public JsonMessage() {
        this.setResult(true);
    }

    public JsonMessage(boolean result) {
        this.setResult(result);
    }
}
